//
//  MJ_SearchTextField.m
//  UEAssistant
//
//  Created by mac on 2018/1/9.
//  Copyright © 2018年 youyixinxi. All rights reserved.
//

#import "MJ_SearchTextField.h"

@implementation MJ_SearchTextField

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
 */
- (CGRect)textRectForBounds:(CGRect)bounds{
    return CGRectMake(bounds.origin.x+20, bounds.origin.y, bounds.size.width-40, bounds.size.height);
}
- (CGRect)placeholderRectForBounds:(CGRect)bounds{
    return CGRectMake(bounds.origin.x+20, bounds.origin.y, bounds.size.width-40, bounds.size.height);
}
- (CGRect)editingRectForBounds:(CGRect)bounds{
    return CGRectMake(bounds.origin.x+20, bounds.origin.y, bounds.size.width-40, bounds.size.height);
}
- (CGRect)clearButtonRectForBounds:(CGRect)bounds{
    return CGRectMake(bounds.size.width-30, bounds.origin.y, 15, bounds.size.height);
}

@end
